﻿<MudPopoverProvider />

<MudDataGrid Items="@_items" Filterable="true" FilterMode="DataGridFilterMode.ColumnFilterRow">
    <Columns>
        <PropertyColumn Property="x => x.Name" ShowFilterIcon="false" />
        <PropertyColumn Property="x => x.Age" ShowFilterIcon="false" />
        <PropertyColumn Property="x => x.Status" ShowFilterIcon="false" />
        <PropertyColumn Property="x => x.Hired" />
        <PropertyColumn Property="x => x.HiredOn" />
    </Columns>
</MudDataGrid>

@code {
    public static string __description__ = "Grid with FilterMode = DataGridFilterMode.ColumnFilterRow and " + 
        "PropertyColumn.ShowFilterIcon = false should not show filter icons";

    public record Model(string Name, int? Age, Severity? Status, bool? Hired, DateTime? HiredOn);

    private readonly IEnumerable<Model> _items = new List<Model>()
    {
        new("Sam", 56, Severity.Normal, false, null), 
        new("Alicia", 54, Severity.Info, null, null), 
        new("Ira", 27, Severity.Success, true, new DateTime(2011, 1, 2)),
        new("John", 32, Severity.Warning, false, null)
    };
}
